package com.Day4;

/**
 * Copyright (C), 2018-2021, 若若叶
 * Author: Hx162
 * Date: 2021/7/8 20:14
 * FileName: VehicleTest
 * Description: Vehicle的测试类
 */
public class VehicleTest {
    public static void main(String[] args) {
        Vehicle vehicle = new Vehicle(60.0,40.5);
        System.out.println("当前信息为：速度：" + vehicle.getSpeed() + "体积：" + vehicle.getSize());
        vehicle.setSpeed(75.5);
        vehicle.setSize(65.5);
        System.out.println("车辆信息更新中...");
        System.out.println("当前信息为：速度：" + vehicle.getSpeed() + "体积：" + vehicle.getSize());
        System.out.println("车辆移动中...");
        vehicle.move();
        System.out.println("车辆加速...");
        vehicle.speedUp();
        System.out.println("现在的速度为：" + vehicle.getSpeed());
        System.out.println("车辆减速...");
        vehicle.speedDown();
        System.out.println("现在的速度为：" + vehicle.getSpeed());
    }
}
